<?php
defined('_JEXEC') or die;

class KetnoiControllerPhanquyen extends JControllerLegacy
{
	public function save()
	{
		$model = $this->getModel("Phanquyen");
		$result = $model->save();
		if(!$result["success"])
		{
			echo json_encode($result);
			exit();
		}
		$id = $result["id"];
		JRequest::setVar("id",$id);	
		parent::display();
	}		
}
